Built-In SPECIALS

Name

Description

Example

index

A value generated by a RepeatBy computation.

RepeatBy 2

generates the individual numeric indexes:

1

2

 

RepeatBy List("Alpha","Beta","Gamma")

generates the individual text indexes:

"Alpha"

"Beta"

"Gamma"

total

The total number of indexes generated by a RepeatBy computation.

RepeatBy 2

generates a total number of indexes:

2

 

RepeatBy List("Alpha","Beta","Gamma")

generates a total number of indexes:

3

context

The full repetition context generated by nested RepeatBy computations.

RepeatBy 2

RepeatBy List("Alpha","Beta","Gamma")

generates the individual repetition contexts:

"1.Alpha"

"1.Beta"

"1.Gamma"

"2.Alpha"

"2.Beta"

"2.Gamma"

^ <expr>

Evaluate one or more levels out from the current repetition context.

Single ^ is one level out, double ^^ is two levels out, etc..

RepeatBy OtherPartyCount

RepeatBy OtherPartyCategories

^OtherPartyName

^^OtherPartyCount

¬ <expr>

Evaluate at the outermost (non-repeated) repetition context.

¬AgreementDate

<expr> at <expr1> ,, <exprK>

 

where K >= 1

Evaluate at a specified repetition context, where the context is a series of individual repetition indexes.

 

This allows values from one repetition context to be accessed in another repetition context.

OtherPartyName AT 2

OtherPartyName AT ^OtherPartyCount

OtherPartyInfo AT 2, "Technology & Expertise"

OtherPartyInfo AT 2,  Security

 

$ <variable>

Test for a variable having a value that is not a pre-defined option.

$ ViawebCategories

$$ <variable>

Test for a variable having multiple values, none of which are pre-defined options.

$$ ViawebCategories

? <variable>

Test for a known value of a variable.

? OtherPartyName

?? <variable>

The text of a known value of a variable or the text representing unknown.

?? OtherPartyName

@ <variable>

All values of a repeated variable represented as a list.

Note that if any instance of a variable is unknown then the @ operator is considered unknown.

@OtherPartyName

@@ <variable>

All known values of a repeated variable represented as a list.

Note that the @@ operator is always evaluable.

@@OtherPartyName

ALL [KNOWN] <generate-expr>
WHERE
<restrict-expr>
[ASCENDING][DESCENDING] <order-expr>

All (known) values generated by an expression over repeated variables.

Optionally, where the corresponding restriction expression holds true.

Optionally, ordered by the ascending or descending values of the ordering expression.

Note that if any instance of the generating expression is unknown then the ALL operator is considered unknown, but the ALL KNOWN operator is not.

ALL ChildName                                                                   (same as @ChildName)

ALL KNOWN ChildName                                                   (same as @@ChildName)

ALL ChildName WHERE ChildAge <= 5

ALL ChildName WHERE ChildGender == "Male" ASCENDING ChildAge

ALL ChildName WHERE ChildGender == "Female" DESCENDING ChildAge

EVERY [KNOWN] <boolean-expr>

 

All (known) values generated by an expression over repeated variables are true.

Note that if any instance of the boolean expression is unknown then the EVERY operator is considered unknown, but the EVERY KNOWN operator is not.

EVERY ChildAge <= 12

EVERY KNOWN ChildAge <= 12

EXISTS <boolean-expr>

 

There exists at least one true value generated by an expression over repeated variables.

Note that if no instance of the boolean expression is true and any instance of the boolean expression is unknown then the EXISTS operator is considered unknown.

EXISTS ChildAge > 12

 

 

THE CHILDREN

Child

Name

Gender

Age

 

Number

Name

Gender

Age

 

ALL CHILDREN

ALL ChildName

 

ALL KNOWN ChildName

 

ALL ChildName
ASCENDING
ChildAge

 

ALL KNOWN ChildName
DESCENDING ChildAge

 

ALL ChildName
WHERE ChildAge <= 5

 

ALL KNOWN ChildName
WHERE ChildAge <= 5

 

ALL ChildName
WHERE ChildGender == "Male"

ASCENDING ChildAge

 

ALL KNOWN ChildName

WHERE ChildGender == "Female"
DESCENDING ChildAge

 

EVERY ChildAge <= 12

 

EVERY KNOWN ChildAge <= 12

 

EXISTS ChildAge > 12

 

 

NAMEs

Top Name:               Name

 

 

 

Inner Name  : Name

 

 

 

ALL [KNOWN] NAMEs

Outer Context:  

All names: Names

All known names: Names

 

Middle Context:  

All names: Names

All known names: Names

 

Inner Context:  

All names: Names

All known names: Names

 

 

 

OTHER OPTIONs

 

Middle Context:  

Middle repetitions:  

Middle repetitions has other option: Other

Middle repetitions has only other options: Only Other

 

Inner Context:  

Inner repetitions:  

Inner repetitions has other option: Other

Inner repetitions has only other options: Only Other

 

 

ABSOLUTE REPETITIONs

Outer Context:  

Reference 1             1 A X:                                    Name

Reference 2             1 B Y:                                    Name

Reference 3             2 A Z:                                    Name

 

 

Inner Context:  

Reference 1             1 A X:                                    Name

Reference 2             1 B Y:                                    Name

Reference 3             2 A Z:                                    Name

Reference 4                Y:                                    Name

Reference 5                Z:                                    Name

 

 

Specials

Inner Repetition

Middle Repetition

Outer Repetition

Known

 

Context

Index

Total

^Context

^Index

^Total

^^Context

^^Index

^^Total

?

??

¬TopName

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

FORM

Section

Governor

Variable

Question

Guidance

Child #|index|

ChildrenCount

 

 

 

 

 

ChildName

Name

 

 

 

ChildGender

Gender

 

 

 

ChildAge

Age

 

 

 

Section

Governor

Variable

Question

Guidance

Level 0

 

 

 

 

 

 

TopName

Top Name

 

 

 

OuterRepetitions

Outer repetitions

 

Level 1 AT |context|

 

 

 

 

 

 

MiddleRepetitions

Middle repetitions

 

Level 2 AT |context|

 

 

 

 

 

 

InnerRepetitions

Inner repetitions

 

Level 3 AT |context|

 

 

 

 

 

 

SomeName

Some Name

 

 

 

VARIABLES

Name

Input

Mode

Min

Max

Step

Options

Other Option

Add Option

Allow Empty

Default

TopName

text

 

 

 

 

 

 

 

 

"Top"

OuterRepetitions

integer

 

 

 

 

 

 

 

 

2

MiddleRepetitions

multipick

 

 

 

 

list( "A", "B" )

"Other than A or B"

"Add another"

 

list( "A", "B" )

InnerRepetitions

multipick

 

 

 

 

list( "X", "Y", "Z" )

"Other than X or Y"

"Add another"

 

if              index == "A"     then     list( "X", "Y", "Z" )

else if      index == "B"      then     list( "X", "Y" )

else                                                 list()

SomeName

text

 

 

 

 

 

 

 

false

( if           index == "X"      then     "Alpha"
else if      index == "Y"      then     "Beta"
else if      index == "Z"      then     "Gamma"
else                                                 "Omega" )
+ ^^index+ ^index

ChildrenCount

integer

 

 

 

 

 

 

 

 

 

ChildName

text

 

 

 

 

 

 

 

 

 

ChildGender

pick

button

 

 

 

list( "Male", "Female" )

 

 

 

 

ChildAge

integer

range

0

18

1